package com.first.homeqian.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.first.common.pojo.TbLink;
import com.first.common.vo.Result;
import com.first.homeqian.mapper.LinkMapper;
import com.first.homeqian.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: first-project
 * @description:
 * @author: 闫锦超
 * @create: 2023-06-01 19:42
 **/
@Service
public class LinkServiceImpl implements LinkService {
    @Autowired
    private LinkMapper linkMapper;

    @Override
    public Result getQianLink() {
        QueryWrapper<TbLink> wrapper = new QueryWrapper<>();
        wrapper.eq("is_disable",0);
        wrapper.eq("is_deleted",0);
        List<TbLink> tbLinks = linkMapper.selectList(wrapper);
        return Result.success(tbLinks);
    }
}
